package com.unit.testng.groups;

import org.testng.annotations.AfterSuite;
import org.testng.annotations.BeforeSuite;
import org.testng.annotations.Test;

/**
 * @author bigFish
 * @Title: 以类分组
 */
@Test(groups = "teacher")
public class GroupsByClass1 {

    @BeforeSuite
    public void teacher1() {
        System.out.println("汤姆老师在上课路上");
    }

    public void teacher() {
        System.out.println("汤姆老师在上课");
    }

    @AfterSuite
    public void teacher2() {
        System.out.println("汤姆老师下课后离开了教室");
    }
}
